package org.dreamfly.core.dao;

import org.dreamfly.core.bean.SzUser;
import org.dreamfly.core.bean.SzUsers;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gin
 * Date: 8/12/11
 * Time: 9:50 AM
 * To change this template use File | Settings | File Templates.
 */
public interface UserDAO extends BaseDAO<SzUsers, Long> {

    List<SzUsers> findAllNative(Class clazz, String server, boolean isNew);

    SzUsers findByName(String server, String username);

    void updateAuthority(SzUser user);

    SzUsers findAdmin(String server);
}
